#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;

class Mytransform
{
public:
	int operator()(int val)
	{
		return val;
	}
};

void test01()
{
	vector<int>v1;
	for (int i = 0; i < 5; i++)
	{
		v1.push_back(i + 1);
	}

	vector<int>v2;
	v2.resize(v1.size());
	transform(v1.begin(),v1.end(),v2.begin(),Mytransform());
	for_each(v2.begin(), v2.end(), [](int val) {cout << val << " "; });
	cout << endl;
}

int main()
{
	test01();
	return 0;
}